'vtable-update-object' can now be called with one argument
authorAdam Porter <adam@alphapapa.net>
Sat, 9 Mar 2024 05:43:14 +0000 (23:43 -0600)
committerEli Zaretskii <eliz@gnu.org>
Thu, 21 Mar 2024 10:41:44 +0000 (12:41 +0200)
commit393f58c85aeb78f814866ccaad9ae7efd3fa6766
tree741c23c6956027a84692a93428f432ef9b1d5f02
parentfe24a8c3c091c1e051fe6a8c1ec4fd30ca052ca7
'vtable-update-object' can now be called with one argument

It's often necessary to update the representation of a single
object in a table (e.g a struct, whose identity does not change
when its slots'
values are changed).  To do so, now the function may be called
like this:

  (vtable-update-object table object)

Instead of like this:

  (vtable-update-object table object object)

This also documents the behavior of the just-discovered limitation filed
as bug#69837.
* lisp/emacs-lisp/vtable.el (vtable-update-object): Make 'old-object'
argument optional.  (Bug#69666)

* doc/misc/vtable.texi (Interface Functions): Update documentation.

* etc/NEWS: Add news entry.
doc/misc/vtable.texi
etc/NEWS
lisp/emacs-lisp/vtable.el